package com.tspi.logtest;

import java.util.ResourceBundle;

import com.tspi.log.CustomServiceLoader;
import com.tspi.log.Logger;

/**
 * Hello world!
 *
 */
public class App {
	public static void main(String[] args) {
		System.out.println("Hello World!");
		
		ResourceBundle log = ResourceBundle.getBundle("log");
		
		String logString = log.getString("logType");
		System.out.println("logType:" + logString);
		
		CustomServiceLoader customServiceLoader = new CustomServiceLoader();
		
		try {
			customServiceLoader.loade(Logger.class);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		System.out.println("logString:" + logString);
		Logger logger = (Logger) customServiceLoader.getType(logString);
		
		logger.info("我爱你。。。");
		
		
	}
}
